From aa515e71d18be5b1bb49986dec9d171d1d4036bd Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 9 Jun 2011 14:56:09 -0400 Subject: [PATCH] spinbutton: don't render an additional background below arrows It's an entry, so it already has a background below, even when the entry doesn't have a frame. Also, gtk_spin_button_draw_arrow() will render a background and a frame in the arrow space anyway. --- gtk/gtkspinbutton.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 90a6a5239d..0bb565633f 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -939,11 +939,6 @@ gtk_spin_button_draw (GtkWidget *widget, gtk_cairo_transform_to_window (cr, widget, priv->panel); - if (gtk_entry_get_has_frame (GTK_ENTRY (widget))) - gtk_render_background (context, cr, 0, 0, - gdk_window_get_width (priv->panel), - gdk_window_get_height (priv->panel)); - gtk_spin_button_draw_arrow (spin, context, cr, GTK_ARROW_UP); gtk_spin_button_draw_arrow (spin, context, cr, GTK_ARROW_DOWN); -- 2.30.2